package com.beidu.lottery.call.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 抽奖活动奖品关联表
 * </p>
 *
 * @author 北渡
 * @since 2023-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("b_activity_lottery_prize")
@ApiModel(value = "ActivityLotteryPrize对象", description = "抽奖活动奖品关联表")
public class ActivityLotteryPrize implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "活动ID")
    private Integer activityId;

    @ApiModelProperty(value = "奖品ID")
    private Integer prizeId;

    @ApiModelProperty(value = "库存(用户设置值)")
    private Integer stock;

    @ApiModelProperty(value = "已使用库存")
    private Integer usedStock;

    @ApiModelProperty(value = "中奖概率")
    private BigDecimal probability;

    @ApiModelProperty(value = "排序索引(ASC)")
    private Integer sortIndex;

    @ApiModelProperty(value = "虚拟奖品卡密批次号")
    private Integer redeemCodeBatch;

    @ApiModelProperty(value = "是否设置为保底(0:不是保底、1:是保底)")
    private Integer minimumGuarantee;

    @ApiModelProperty(value = "数据状态(0:删除, 1:正常)")
    @TableLogic
    private Integer status;

    @ApiModelProperty(value = "创建人id")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdDate;

    @ApiModelProperty(value = "更新人id")
    private String updatedBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedDate;

}
